-
Notifications
You must be signed in to change notification settings - Fork 331
feat(catalog): impl builder for SqlCatalog #1666
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
The implementation is complete and I'd like you to review it. 🙇 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @335g for this pr! Left some comments to resolve.
@liurenjie1024 Thanks for the review! I've addressed the comments you made. 🙇🏼 |
crates/catalog/sql/src/catalog.rs
Outdated
uri: "".to_string(), | ||
name: "".to_string(), | ||
warehouse_location: "".to_string(), | ||
file_io: FileIOBuilder::new_fs_io().build().unwrap(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should not panic here, instead we should report an error.
@liurenjie1024 May I ask a question?
impl SqlCatalogBuilder {
pub fn new(file_io: FileIO) -> Self {
...
}
} If possible, I'd like to remove |
Hi, @335g I'm not convinced that we should remove
It's |
Hi, @liurenjie1024 Thanks for the comment. I realized I didn't fully understand the previous comment. I've made some adjustments to the implementation - how does this look? |
Resolved conflict |
Which issue does this PR close?
What changes are included in this PR?
SqlCatalogBuilder
implementation foriceberg::CatalogBuilder
.SqlCatalogConfig
toSqlCatalogBuilder
, we've simplified the process for creatingSqlCatalog
objects.Box<dyn BoxedCatalogBuilder>
for theSqlCatalog
via theload
function (Implement catalog loader function. #1260)Are these changes tested?
Yes (only tested whether it could be made)